﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Section16.ascx.vb" Inherits="Control_MSDS_Section16" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {
            $(".TextBox:first").focus();
            $(".Date").datepicker({ dateFormat: 'dd/mm/yy' });
            $("#<%=txtS1621.ClientID %>").change(function () {
                if ($(this).val() != "") { 
                var arr = $(this).val().split("/");
                var newdate = (parseInt(arr[2]) + 3) + "/" + arr[1] + "/" + arr[0];
                var myDate = new Date(newdate);
                $('#<%=txtS1651.ClientId() %>').val($.datepicker.formatDate('dd/mm/yy', myDate));                
                }
        });
        $("#<%=txtS1631.ClientID %>").change(function () {
            if ($(this).val() != "") {
                var arr = $(this).val().split("/");
                var newdate = (parseInt(arr[2]) + 3) + "/" + arr[1] + "/" + arr[0];
                var myDate = new Date(newdate);
                $('#<%=txtS1651.ClientId() %>').val($.datepicker.formatDate('dd/mm/yy', myDate));
            }
        });


        });
    }
 
</script>
<asp:UpdatePanel ID="uplMsdssection16" runat="server">
    <ContentTemplate>
        <div style="clear: both; height: 20px">
        </div>
        <div class="BoxField">
            <div class="HeadTitle">
                <h3>
                    <asp:Label ID="Section16lblHeader" runat="server" Text="PHẦN XVI. THÔNG TIN KHÁC" /></h3>
            </div>
            <div class="DivRequired">
                <span class="fieldRequired">&nbsp;</span><asp:Literal ID="ltrRequired" runat="server"> Trường yêu cầu nhập dữ liệu</asp:Literal>
            </div>
            <div class="Error">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblS1611" CssClass="TextLabel" runat="server" Text="Số phiên bản" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtS1611" CssClass="TextBox " runat="server" Text="" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Session16lblNgayThangBienSoanPhieu" CssClass="TextLabel" runat="server"
                        Text="Ngày tháng biên soạn phiếu:" />
                    <span class="fieldRequired">&nbsp;</span>
                    <asp:RequiredFieldValidator ID="Section16ErrorNgayThangBienSoan" runat="server" ControlToValidate="txtS1621"
                        Display="None" ErrorMessage="Vui lòng nhập ngày tháng biên soạn phiếu" SetFocusOnError="True" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtS1621" CssClass="TextBox Date" runat="server" Text="" placeholder="dd/MM/yyyy" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblS1631" CssClass="TextLabel" runat="server" Text="Ngày tháng sửa đổi, bổ sung gần nhất:" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtS1631" CssClass="TextBox Date" runat="server" Text="" placeholder="dd/MM/yyyy" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblCompany" CssClass="TextLabel" runat="server" Text="Tên tổ chức, cá nhân soạn thảo:" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtS1641" CssClass="TextBox" runat="server" Text="" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblExpired" CssClass="TextLabel" runat="server" Text="Ngày hết hạn:" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtS1651" CssClass="TextBox Date" runat="server" Text="" placeholder="dd/MM/yyyy" />
                </div>
            </div>


            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Thông tin khác:" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtS1661" CssClass="TextArea" runat="server" TextMode="MultiLine"></asp:TextBox>
                </div>
            </div>

            <div class="DivRow">
                <div class="DivLabel">
                    &nbsp;&nbsp;&nbsp;</div>
                <div class="DivTextBox">
                    <div style="float: left">
                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn" />
                        &nbsp;
                        <asp:Button ID="btnPrevious" runat="server" Text="Previous" CssClass="btn" CausesValidation="false" />
                    </div>
                    <div style="float: right; text-align: right">
                        &nbsp;</div>
                </div>
            </div>
        </div>
        <div style="display: none">
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
            <asp:HiddenField ID="hidMSDSId" Value="0" runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
